﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nage.Algorithms.Solution;
using Nage.Algorithms.Population;

namespace Nage.Examples.RastriginIsland.Topologies
{
    public class TopologyNode<TSol> where TSol : ISolution
    {
        public IPopulation<TSol> Population { get; set; }
        public List<TopologyNode<TSol>> Neighbours { get; set; }

        public TopologyNode()
        {
            Neighbours = new List<TopologyNode<TSol>>();
        }

        public TopologyNode(IPopulation<TSol> population)
            : this()
        {
            Population = population;
        }
    }
}
